<link rel="stylesheet" href="/style/jmdf.css" media="all">
<#setting number_format="#.##">
<table border="2" style="width: 98%;border-color: white;text-align: center;color: white;font-size: 23px;margin-top: 60px">
    <thead>
    <tr>
        <th rowspan="2">小区名称</th>
        <th rowspan="2">用途类型</th>
        <th colspan="2">总数</th>
        <th colspan="2" class="jmdf-color-red">已选</th>
        <th colspan="2" class="jmdf-color-green">剩余</th>
    </tr>
    <tr>
        <th>数量</th>
        <th>面积</th>
        <th class="jmdf-color-red">数量</th>
        <th class="jmdf-color-red">面积</th>
        <th class="jmdf-color-green">数量</th>
        <th class="jmdf-color-green">面积</th>
    </tr>
    </thead>
    <tbody>
    <#if (houseYcDataMap??)>
        <#assign allshopHouseTotal= 0/>
        <#assign allshopHouseAreaTotal= 0/>
        <#assign allChooseshopHouseTotal= 0/>
        <#assign allChooseshopHouseAreaTotal= 0/>
        <#assign allUnChooseshopHouseTotal= 0/>
        <#assign allUnChooseshopHouseAreaTotal= 0/>
        <#list houseYcDataMap?keys as azProjectId>
            <#assign azProject=azProjectMap[azProjectId]/>
            <#assign itemMap=houseYcDataMap[azProjectId]/>
            <#if (itemMap??)>
                <#assign itemMapLen=itemMap?size/>
                <#list itemMap?keys as houseYc>
                    <#assign dataMap=itemMap[houseYc]/>
                    <#assign allshopHouseTotal= allshopHouseTotal+dataMap["shopHouseTotal"]/>
                    <#assign allshopHouseAreaTotal= allshopHouseAreaTotal+dataMap["shopHouseAreaTotal"]/>
                    <#assign allChooseshopHouseTotal= allChooseshopHouseTotal+dataMap["chooseShopHouseTotal"]/>
                    <#assign allChooseshopHouseAreaTotal= allChooseshopHouseAreaTotal+dataMap["chooseShopHouseAreaTotal"]/>
                    <#assign allUnChooseshopHouseTotal= allUnChooseshopHouseTotal+dataMap["unChooseShopHouseTotal"]/>
                    <#assign allUnChooseshopHouseAreaTotal= allUnChooseshopHouseAreaTotal+dataMap["unChooseShopHouseAreaTotal"]/>
                    <tr>
                        <td>${(azProject.projectName)!}</td>
                        <td>${houseYcMap[houseYc]}</td>
                        <td>${dataMap["shopHouseTotal"]}</td>
                        <td>${dataMap["shopHouseAreaTotal"]}</td>
                        <td class="jmdf-color-red">${dataMap["chooseShopHouseTotal"]}</td>
                        <td class="jmdf-color-red">${dataMap["chooseShopHouseAreaTotal"]}</td>
                        <td class="jmdf-color-green">${dataMap["unChooseShopHouseTotal"]}</td>
                        <td class="jmdf-color-green">${dataMap["unChooseShopHouseAreaTotal"]}</td>
                    </tr>
                </#list>
            </#if>
        </#list>
        <tr>
            <td colspan="2">合计</td>
            <td>${allshopHouseTotal}</td>
            <td>${allshopHouseAreaTotal}</td>
            <td class="jmdf-color-red">${allChooseshopHouseTotal}</td>
            <td class="jmdf-color-red">${allChooseshopHouseAreaTotal}</td>
            <td class="jmdf-color-green">${allUnChooseshopHouseTotal}</td>
            <td class="jmdf-color-green">${allUnChooseshopHouseAreaTotal}</td>
        </tr>
    </#if>
    </tbody>
</table>